@echo off
SETLOCAL

REM core script directories
set BASE_DIR=%~dp0

set SAXON_JAR=%BASE_DIR%\saxon-he-9.3.0.5.jar
set CLASS_PATH=".;%SAXON_JAR%;%CLASS_PATH%"
set INPUT=%1%
set OUTPUT=%2%
set XSLT=%3%

set JAVA_HEAP_MAX=512M

java -cp %CLASS_PATH% -Xmx%JAVA_HEAP_MAX% net.sf.saxon.Transform -s:%INPUT% -o:%OUTPUT% -xsl:%XSLT%

ENDLOCAL